package com.kanq.service;

import com.kanq.pojo.request.ChatRequest;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;

import java.util.concurrent.ConcurrentHashMap;

public interface IChatService {

    /**
     * 客户端发送消息到服务端
     *
     * @param chatRequest 请求对象
     */
    SseEmitter chat(ChatRequest chatRequest, SseEmitter emitter, ConcurrentHashMap<String, SseEmitter> taskEmitterMap);


    /**
     * 获取此服务支持的模型类别
     */
    String getCategory();
}
